<%@ page language="java" pageEncoding="UTF-8" isELIgnored="false"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<script language="javascript" src="<%=path%>/js/jquery-1.7.1.min.js"></script>

<script type="text/javascript">
	window.onload = function() {
		var currentPage = document.getElementById("currentPage");
	}
</script>

</head>
<body>

	<table>
		<thead>
			<th>ID</th>
			<th>name</th>
			<th>price</th>
			<th>是否通过</th>
		</thead>


		<c:forEach items="${tickets}" var="ticket">
			<tr>
				<td><c:out value="${ticket.id}"></c:out></td>
				<td><c:out value="${ticket.name}"></c:out></td>
				<td><c:out value="${ticket.price}"></c:out></td>
				<td><c:out value="${ticket.isApproved}"></c:out></td>
			</tr>
		</c:forEach>

		<tr>
			<td>第几页</td>
			<td>
				<form action="${pageContext.request.contextPath}/ticket/list.do">
					<input id="currentPage" name="currentPage" type="text" />
					<input id="pageSize" name="pageSize" type="hidden" value="2" />
					<input type="submit" value="去吧" />
				</form>
			 </td>

		</tr>
	</table>

</body>
</html>